window: Update opaque region if background-color changes
authorBenjamin Otte <otte@redhat.com>
Fri, 13 Jul 2018 12:52:43 +0000 (14:52 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 13 Jul 2018 13:02:47 +0000 (15:02 +0200)
commit9008f7702dff689ce48f2cfa7ce42db099e4ef0c
tree56c3003e5d9dfa2b0e5f79d5a1b04956bf0c90c3
parentdf0454236c720406c3c9ecea4fe5c27f34954a97
window: Update opaque region if background-color changes

The opaque region is only set when the background color is opaque. So
we need to do something about it when the background color changes.

However, in the case where a size allocation is going to happen, we
already do this update in size_allocate(), so in that case avoid doing
it twice.
gtk/gtkwindow.c